import React from 'react';
const CommentList = ({comments}) => {
  return (
    <div className="comment-list-component">
      <label>评论列表</label>
      <ul className="list-group mb-3">
        {
          comments.map((item,idx)=>
           <li key={idx} className="list-group-item">{item}</li>
          )
        }
      </ul>
    </div>
  )
}
export default CommentList;
